﻿using SqlSugar;
using System;

namespace IconYuan.Model.Entity.Users
{
    /// <summary>
    /// 等级变更记录表
    /// </summary>
    [SugarTable("uc_grade_log")]
    public class GradeLog
    {
        /// <summary>
        /// 自增
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int log_id { get; set; }
        /// <summary>
        /// 会员id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 变更前的等级ID
        /// </summary>
        public int old_grade_id { get; set; }
        /// <summary>
        /// 变更后的等级ID
        /// </summary>
        public int new_grade_id { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime expire_time { get; set; }
        /// <summary>
        /// 变更类型(10后台管理员设置 20自动升级)
        /// </summary>
        public int change_type { get; set; } = 10;
        /// <summary>
        /// 扩展设置
        /// </summary>
        public string ext { get; set; } = string.Empty;
        /// <summary>
        /// 管理员备注
        /// </summary>
        public string remark { get; set; } = string.Empty;
        public int store_id { get; set; }
        public DateTime create_time { get; set; }
    }
}
